#! /bin/bash

DIR=ATCountryWidget

##
DOC=$DIR/doc
TGZ=ATCountryWidget_0.2.4.tgz
MD5=$TGZ.md5

mkdir -p $DIR
mkdir -p $DOC


cp *.py version.txt README.txt $DIR

mkdir -p $DIR/Extensions
cp Extensions/*.py $DIR/Extensions

mkdir -p $DIR/tests
cp tests/*.py $DIR/tests

mkdir -p $DIR/www
cp www/*.zpt www/*.gif $DIR/www

mkdir -p $DIR/skins
mkdir -p $DIR/skins/ATCountryWidget
mkdir -p $DIR/skins/ATCountryWidget/country_widgets
cp skins/ATCountryWidget/country_widgets/*.pt $DIR/skins/ATCountryWidget/country_widgets

cp doc/*.txt $DOC

tar -czf $TGZ $DIR
rm -rf $DIR
md5sum $TGZ >$MD5

scp $TGZ $MD5 nilo@amy.gocept.com:/usr/local/ftp/ATCountryWidget

rm $TGZ $MD5
